Skip to main content

Custom Adapter

To add a custom adapter to your Cocos2d-x app, configure each platform as follows:

Gradle (Android)

  1. Add your adapter's Maven repository (if required) to the top-level build.gradle/build.gradle.kts:
allprojects {
repositories {
// ... existing repositories
maven { url "https://custom.repository.com/maven" }
}
}
  1. Add the adapter dependency to your app module app/build.gradle or app/build.gradle.kts:
dependencies {
implementation 'com.custom.package:custom-adapter:1.0.0'
}
note

Replace the placeholder coordinates (group:artifact:version, pod name/version, and repository URLs) with the actual details provided by your adapter.

tip

If you encounter issues integrating your adapter, consult the adapter's documentation or contact the provider for support.